package com.example.arithmeticleetcode.learnArithmetic.map.set;

/**
 * @program: arithmetic-leetcode
 * @description:
 * @author: FangZhen
 * @create: 2020-10-21 17:29
 **/
public class TreeSetTest {

    public static void main(String[] args) {
        test1();
    }

    static void test1() {
        Set<Integer> treeSet = new TreeSet<>();
        treeSet.add(10);
        treeSet.add(11);
        treeSet.add(12);
        treeSet.add(13);
        treeSet.add(10);
        System.out.println("111111");
        treeSet.tranversal(new Set.Visitor<Integer>() {
            @Override
            boolean visit(Integer element) {
                System.out.println(element);
                return false;
            }
        });
    }
}
